/**
 * 
 */
package br.com.lazyprogrammer.worldsoccermanager.system.keyboard;

import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

/**
 * 
 * @author Limao Games <br />
 * <b>Email:</b> andreikeda@limaogames.com.br <br />
 * created on: 07/05/2014
 * @version 1.0
 * @see 
 */
public class Keyboard {

	/**
	 * 
	 * @param view {@link EditText} 
	 */
	public static void close(Context c, View view) {
		InputMethodManager imm = (InputMethodManager) c.getSystemService(
				Context.INPUT_METHOD_SERVICE);
		if (imm != null && view != null)
			imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
	}

}
